package cn.hhit.ximalaya.adapters;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import cn.hhit.ximalaya.utils.CreatorFragment;

public class MainContent_ViewPager_Adapter extends FragmentPagerAdapter {

    public MainContent_ViewPager_Adapter(@NonNull FragmentManager fm) {
        super(fm);
    }

    @NonNull
    @Override
    public Fragment getItem(int position) {
        return CreatorFragment.getBaseFragment(position);
    }

    @Override
    public int getCount() {
        return CreatorFragment.PAGE_COUNT;
    }
}
